<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: src/BaseType.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">BaseType.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_base_type_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * This file is part of libemb.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * libemb is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * libemb is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with libemb.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * Project: Embedme</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * Author : FergusZeng</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Email  : cblock@126.com</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * git    : https://gitee.com/newgolo/embedme.git</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * Copyright 2014~2020 @ ShenZhen ,China</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">*******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __BASE_TYPE_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __BASE_TYPE_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span>libemb{</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classlibemb_1_1_base_info.html">   42</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_base_info.html">BaseInfo</a>{</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> m_major=2;<span class="comment">/* 主版本 */</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> m_minor=0;<span class="comment">/* 小版本 */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> m_patch=0;<span class="comment">/* 补丁版本 */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> verMajor();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> verMinor();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> verPatch();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">static</span> std::string version();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;};</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a01b95241136053b637a37115d60a3621">   70</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#a01b95241136053b637a37115d60a3621">sint8</a> = <span class="keywordtype">signed</span> char;      </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="_base_type_8h.html#abef257ae28ebcc7afce968c8cc64c006">   71</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#abef257ae28ebcc7afce968c8cc64c006">sint16</a> = <span class="keywordtype">signed</span> short;    </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="_base_type_8h.html#acb7826b9adaa8e650e7f090ec418cade">   72</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#acb7826b9adaa8e650e7f090ec418cade">sint32</a> = <span class="keywordtype">signed</span> int;      </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a48aedf065d71f1d23d24501f411c6e42">   73</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#a48aedf065d71f1d23d24501f411c6e42">sint64</a> = <span class="keywordtype">signed</span> <span class="keywordtype">long</span> long;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">   74</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> = <span class="keywordtype">unsigned</span> char;    </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="_base_type_8h.html#aebf3b8d3c22313714b07d595cc3effac">   75</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#aebf3b8d3c22313714b07d595cc3effac">uint16</a> = <span class="keywordtype">unsigned</span> short;  </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">   76</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a> = <span class="keywordtype">unsigned</span> int;    </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a33693dc67dce44b501dc5d6661639155">   77</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#a33693dc67dce44b501dc5d6661639155">uint64</a> = <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> long;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a792960261d486477eeadf5ead6303203">   78</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#a792960261d486477eeadf5ead6303203">fltp32</a> = float;           </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a8cf9eb6347322ab5fc5df9edc3d44276">   79</a></span>&#160;<span class="keyword">using</span> <a class="code" href="_base_type_8h.html#a8cf9eb6347322ab5fc5df9edc3d44276">fltp64</a> = double;          </div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">/* 定义函数返回值 */</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673">   82</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673">RC_E</a></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;{</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a3c001b04130f4d348aa3b9d2245774a7">   84</a></span>&#160;    <a class="code" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a3c001b04130f4d348aa3b9d2245774a7">RC_OK</a> = 0,      </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a2b6da99bcd572ee55d3cd6b9cfb74500">   85</a></span>&#160;    <a class="code" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a2b6da99bcd572ee55d3cd6b9cfb74500">RC_ERROR</a> = -1,  </div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a07aeb21aa3dbaf09860fdd89e67f6c52">   86</a></span>&#160;    <a class="code" href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a07aeb21aa3dbaf09860fdd89e67f6c52">RC_TIMEOUT</a> = -2,</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;};</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment">/* 定义数据类型 */</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453e">   90</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453e">BASETYPE_E</a></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea4a24a7a6de42cf3cc8194a25d84e5a36">   92</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea4a24a7a6de42cf3cc8194a25d84e5a36">BASETYPE_NONE</a>=0,        </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea12310335ecadd4629aaa38bfe1e19ebe">   93</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea12310335ecadd4629aaa38bfe1e19ebe">BASETYPE_INT</a>,           </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea1e3aaaa5a1aacb987461b1bcb6902ed0">   94</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea1e3aaaa5a1aacb987461b1bcb6902ed0">BASETYPE_DOUBLE</a>,        </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eacb991a500be227bd5411bdba6672dca7">   95</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eacb991a500be227bd5411bdba6672dca7">BASETYPE_STRING</a>,        </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eaf62b1703b9f8442c584ff9d73695303f">   96</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eaf62b1703b9f8442c584ff9d73695303f">BASETYPE_INTARRAY</a>,      </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea67c217d18c5dde20e6f286aa296a8bc2">   97</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea67c217d18c5dde20e6f286aa296a8bc2">BASETYPE_DOUBLEARRAY</a>,   </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea04372dfea53597c8a35527759ce81542">   98</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea04372dfea53597c8a35527759ce81542">BASETYPE_STRINGARRAY</a>,   </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea09dd19a9495a2b868a1fbb597bc9d438">   99</a></span>&#160;    <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea09dd19a9495a2b868a1fbb597bc9d438">BASETYPE_TUPLE</a>,         </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;};</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#define ARRAY_SIZE(array)   (sizeof(array)/sizeof(array[0]))    </span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a70c57aae3eb654e205459b4362c8089a">  105</a></span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#define IS_DIGITAL(ch)   ((((ch)&gt;=&#39;0&#39;)&amp;&amp;((ch)&lt;=&#39;9&#39;))?true:false)</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a76e74e5534d139b2b72763f7230abdbc">  108</a></span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">#define IS_HEXDIG(ch)    (((((ch)&gt;=&#39;0&#39;)&amp;&amp;((ch)&lt;=&#39;9&#39;))||(((ch)&gt;=&#39;A&#39;)&amp;&amp;((ch)&lt;=&#39;F&#39;))||(((ch)&gt;=&#39;a&#39;)&amp;&amp;((ch)&lt;=&#39;f&#39;)))?true:false)</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a6dac81d72cfe90b7da010b9becf62606">  111</a></span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#define IS_CAPITAL(ch)   ((((ch)&gt;=&#39;A&#39;)&amp;&amp;((ch)&lt;=&#39;Z&#39;))?true:false)</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="_base_type_8h.html#aef7ed709c11221c220a4637d8ed946e3">  114</a></span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#define IS_ALPHABET(ch)  (((((ch)&gt;=&#39;A&#39;)&amp;&amp;((ch)&lt;=&#39;Z&#39;))||(((ch)&gt;=&#39;a&#39;)&amp;&amp;((ch)&lt;=&#39;b&#39;)))?true:false)</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="_base_type_8h.html#af84cf65fa3abd8d70b242252eb2f76b9">  117</a></span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#ifndef MAX</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#define MAX(x,y) (((x)&gt;(y))?(x):(y))</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="_base_type_8h.html#aacc3ee1a7f283f8ef65cea31f4436a95">  121</a></span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#ifndef MIN</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#define MIN(x,y) (((x)&lt;(y))?(x):(y))</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a74e75242132eaabbc1c512488a135926">  126</a></span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keyword">enum</span> MAX_INT_E{</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    MAX_INT8=127,</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    MAX_INT8U=255,</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    MAX_INT16=32767,</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    MAX_INT16U=65535,</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    MAX_INT32=2147483647,</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    MAX_INT32U=4294967295</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;};</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">#define CLIP(min,x,max) (((x)&gt;(max))?(max):(((x)&lt;(min))?(min):(x)))</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a6147f3466ba046825bde1fdc6c07b5e1">  139</a></span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">#define BIT_GET(value,bit)      (!!((0x0001&lt;&lt;(bit))&amp;(value)))   </span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a294f1ac3fb1bd546cba9cc71604c987f">  141</a></span>&#160;<span class="preprocessor">#define BIT_SET(value,bit)      ((0x0001&lt;&lt;(bit))|(value))       </span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="_base_type_8h.html#ab94522870cd3d40d76ae0a8778166017">  142</a></span>&#160;<span class="preprocessor">#define BIT_CLR(value,bit)      ((~(0x0001&lt;&lt;(bit)))&amp;(value))    </span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#define UNUSED_PARAM(param) {(void)(param);}            </span></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a460cdce060735081f1d22b0e0f60d9dd">  145</a></span>&#160;<span class="preprocessor">#define CSTR(stdstr)        ((stdstr).c_str())          </span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a758b170f0918c7f7fe2f4c81241300fc">  146</a></span>&#160;<span class="preprocessor">#define VSTR(stdstr)        ((stdstr).empty()?&quot;(null)&quot;:(stdstr).c_str())</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a1777b0250ed9ff46a571023359f34be1">  147</a></span>&#160;<span class="preprocessor">#define CH2STR(ch)          (std::string(1,(char)ch))   </span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="_base_type_8h.html#ae11866354a21f09e0cb63330dfd430a2">  148</a></span>&#160;<span class="preprocessor">#define BUILD_DATE          __DATE__                    </span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a7f43b36cfbbd59cd83b3193004616f7e">  149</a></span>&#160;<span class="preprocessor">#define BUILD_TIME          __TIME__                    </span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#define ENUM_STRING(enum_name)  {enum_name,#enum_name}    </span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="struct_enum_string.html">  156</a></span>&#160;<span class="preprocessor">struct EnumString{</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">int</span> value;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *name;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;};</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor">#if __GNUC__ &gt;= 4</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">    #define SYMBOL_PUBLIC __attribute__ ((visibility(&quot;default&quot;)))</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="preprocessor">    #define SYMBOL_LOCAL  __attribute__ ((visibility(&quot;hidden&quot;)))</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="preprocessor">    #define SYMBOL_PUBLIC</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="_base_type_8h.html#acd8f284e92f5d8b7f694849f4874225d">  167</a></span>&#160;<span class="preprocessor">    #define SYMBOL_LOCAL</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor">#define DECL_COPY_DISABLE(...) \</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="_base_type_8h.html#ac133dccd0c5479b2de3d40dc1658e098">  172</a></span>&#160;<span class="preprocessor">  __VA_ARGS__(const __VA_ARGS__ &amp;) = delete; \</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">  __VA_ARGS__ &amp; operator=(const __VA_ARGS__ &amp;) = delete;</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#define DECL_CLASSNAME(ClassName)   public:virtual const char* className(){return CSTR(__CLASS_NAME__);}private:std::string __CLASS_NAME__{#ClassName};</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">  177</a></span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">#define CC_PROPERTY(varType, varName, dftVal) \</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="_base_type_8h.html#a061394ba346bf86b39c07aefb2164264">  180</a></span>&#160;<span class="preprocessor">protected: varType m_##varName{dftVal};\</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor">public: varType get##varName(void){return m_##varName;}\</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">public: void set##varName(varType var){m_##varName=var;}</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keyword">namespace </span>libemb{</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classlibemb_1_1_bitable.html">  192</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_bitable.html">Bitable</a>{</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classlibemb_1_1_bitable.html#ac9bde967e494238b2036bbc1bba744b4">  198</a></span>&#160;    <a class="code" href="classlibemb_1_1_bitable.html#ac9bde967e494238b2036bbc1bba744b4">Bitable</a>(<span class="keyword">const</span> T&amp; <a class="code" href="classlibemb_1_1_bitable.html#af2aa2812489c2cac8d91a43af99d310d">value</a>)</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        m_value = <a class="code" href="classlibemb_1_1_bitable.html#af2aa2812489c2cac8d91a43af99d310d">value</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    }</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    ~<a class="code" href="classlibemb_1_1_bitable.html">Bitable</a>(){};</div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classlibemb_1_1_bitable.html#a7583c2b1989da76531bb3c433219adb3">  208</a></span>&#160;    <a class="code" href="classlibemb_1_1_bitable.html">Bitable</a>&amp; <a class="code" href="classlibemb_1_1_bitable.html#a7583c2b1989da76531bb3c433219adb3">set</a>(<a class="code" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> bit)</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    {</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        m_value = (0x0001&lt;&lt;bit) | m_value;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    }</div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classlibemb_1_1_bitable.html#a91b63b720bddc68d88087047ac967e22">  218</a></span>&#160;    <a class="code" href="classlibemb_1_1_bitable.html">Bitable</a>&amp; <a class="code" href="classlibemb_1_1_bitable.html#a91b63b720bddc68d88087047ac967e22">clr</a>(<a class="code" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> bit)</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    {</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        m_value = (~(0x0001&lt;&lt;bit)) &amp; m_value;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    }</div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="classlibemb_1_1_bitable.html#af2aa2812489c2cac8d91a43af99d310d">  227</a></span>&#160;    T <a class="code" href="classlibemb_1_1_bitable.html#af2aa2812489c2cac8d91a43af99d310d">value</a>()</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    {</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keywordflow">return</span> m_value;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    }</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    T m_value;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;};</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classlibemb_1_1_array.html">  242</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_array.html">Array</a>{</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <a class="code" href="classlibemb_1_1_array.html">Array</a>():m_type(<a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea4a24a7a6de42cf3cc8194a25d84e5a36">BASETYPE_NONE</a>){}</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classlibemb_1_1_array.html">Array</a>()</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        m_array.clear();</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keywordtype">int</span> type()</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    {</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="keywordflow">return</span> m_type;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    }</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordtype">int</span> size()</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keywordflow">return</span> m_array.size();</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="keywordtype">void</span> clear()</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        m_array.clear();</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    }</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    T&amp; operator[](<span class="keywordtype">int</span> idx)</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    {</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">return</span> m_array[idx];</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    }</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <a class="code" href="classlibemb_1_1_array.html">Array</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classlibemb_1_1_array.html">Array</a>&amp; array)</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    {</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <span class="keywordflow">if</span> (<span class="keyword">this</span>==&amp;array)</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        {</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        m_array = array.m_array;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    }</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <a class="code" href="classlibemb_1_1_array.html">Array</a>&amp; append(T item)</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    {</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        m_array.push_back(item);</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    }</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordtype">int</span> m_type;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    std::vector&lt;T&gt; m_array;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;};</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="classlibemb_1_1_int_array.html">  288</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_int_array.html">IntArray</a>:<span class="keyword">public</span> <a class="code" href="classlibemb_1_1_array.html">Array</a>&lt;int&gt;{</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<a class="code" href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">DECL_CLASSNAME</a>(<a class="code" href="classlibemb_1_1_int_array.html">IntArray</a>)</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <a class="code" href="classlibemb_1_1_int_array.html">IntArray</a>()</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        m_type = <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eaf62b1703b9f8442c584ff9d73695303f">BASETYPE_INTARRAY</a>;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    }</div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="classlibemb_1_1_int_array.html#a6ae2e20c4b7051b42f7b7944090872fd">  299</a></span>&#160;    <a class="code" href="classlibemb_1_1_int_array.html#a6ae2e20c4b7051b42f7b7944090872fd">IntArray</a>(<span class="keyword">const</span> std::string&amp; arrayString)</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    {</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        m_type = <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eaf62b1703b9f8442c584ff9d73695303f">BASETYPE_INTARRAY</a>;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <a class="code" href="classlibemb_1_1_int_array.html#a7a98fe85552ee05acc5002799dad4d51">initWithString</a>(arrayString);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classlibemb_1_1_int_array.html#a7a98fe85552ee05acc5002799dad4d51">initWithString</a>(<span class="keyword">const</span> std::string&amp; arrayString);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    std::string <a class="code" href="classlibemb_1_1_int_array.html#a1580cebd3d37f131d9827f1f19304414">serialize</a>();</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="classlibemb_1_1_int_array.html#a416034bfc984573612de54b672c19a29">  323</a></span>&#160;    <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classlibemb_1_1_int_array.html#a416034bfc984573612de54b672c19a29">operator&lt;&lt;</a>(std::ostream&amp; os,<a class="code" href="classlibemb_1_1_int_array.html">IntArray</a>&amp; array)</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    {</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        os&lt;&lt;array.<a class="code" href="classlibemb_1_1_int_array.html#a1580cebd3d37f131d9827f1f19304414">serialize</a>();</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;        <span class="keywordflow">return</span> os;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    }</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;};</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="classlibemb_1_1_double_array.html">  334</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_double_array.html">DoubleArray</a>:<span class="keyword">public</span> <a class="code" href="classlibemb_1_1_array.html">Array</a>&lt;double&gt;{</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;<a class="code" href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">DECL_CLASSNAME</a>(<a class="code" href="classlibemb_1_1_double_array.html">DoubleArray</a>)</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <a class="code" href="classlibemb_1_1_double_array.html">DoubleArray</a>()</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    {</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        m_type = <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea67c217d18c5dde20e6f286aa296a8bc2">BASETYPE_DOUBLEARRAY</a>;</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    }</div>
<div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="classlibemb_1_1_double_array.html#ac57c59cd02d6f9639ec8b893ab7fd0bb">  345</a></span>&#160;    <a class="code" href="classlibemb_1_1_double_array.html#ac57c59cd02d6f9639ec8b893ab7fd0bb">DoubleArray</a>(<span class="keyword">const</span> std::string&amp; arrayString)</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        m_type = <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea67c217d18c5dde20e6f286aa296a8bc2">BASETYPE_DOUBLEARRAY</a>;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        <a class="code" href="classlibemb_1_1_double_array.html#a9739eccdbdf1146ac2b387b40b5abf7a">initWithString</a>(arrayString);</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classlibemb_1_1_double_array.html#a9739eccdbdf1146ac2b387b40b5abf7a">initWithString</a>(<span class="keyword">const</span> std::string&amp; arrayString);</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    std::string <a class="code" href="classlibemb_1_1_double_array.html#a7295a092ba7f8fb72cac2cc71599b83d">serialize</a>();</div>
<div class="line"><a name="l00368"></a><span class="lineno"><a class="line" href="classlibemb_1_1_double_array.html#a3ed044e1aed75ea335ab74db0b07bcbb">  368</a></span>&#160;    <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classlibemb_1_1_double_array.html#a3ed044e1aed75ea335ab74db0b07bcbb">operator&lt;&lt;</a>(std::ostream&amp; os,<a class="code" href="classlibemb_1_1_double_array.html">DoubleArray</a>&amp; array)</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    {</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        os&lt;&lt;array.<a class="code" href="classlibemb_1_1_double_array.html#a7295a092ba7f8fb72cac2cc71599b83d">serialize</a>();</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <span class="keywordflow">return</span> os;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;};</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160; </div>
<div class="line"><a name="l00379"></a><span class="lineno"><a class="line" href="classlibemb_1_1_string_array.html">  379</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_string_array.html">StringArray</a>:<span class="keyword">public</span> <a class="code" href="classlibemb_1_1_array.html">Array</a>&lt;std::string&gt;{</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<a class="code" href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">DECL_CLASSNAME</a>(<a class="code" href="classlibemb_1_1_string_array.html">StringArray</a>)</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <a class="code" href="classlibemb_1_1_string_array.html">StringArray</a>()</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    {</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        m_type = <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea04372dfea53597c8a35527759ce81542">BASETYPE_STRINGARRAY</a>;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    }</div>
<div class="line"><a name="l00390"></a><span class="lineno"><a class="line" href="classlibemb_1_1_string_array.html#acb17447a18caf2da274f1365cf920971">  390</a></span>&#160;    <a class="code" href="classlibemb_1_1_string_array.html#acb17447a18caf2da274f1365cf920971">StringArray</a>(<span class="keyword">const</span> std::string&amp; arrayString)</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    {</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        m_type = <a class="code" href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea04372dfea53597c8a35527759ce81542">BASETYPE_STRINGARRAY</a>;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <a class="code" href="classlibemb_1_1_string_array.html#acda2be54bd7ca8e69a8b659050691943">initWithString</a>(arrayString);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    }</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classlibemb_1_1_string_array.html#acda2be54bd7ca8e69a8b659050691943">initWithString</a>(<span class="keyword">const</span> std::string&amp; arrayString);</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    std::string <a class="code" href="classlibemb_1_1_string_array.html#a0bc7d2cf58b5d54ef8c4ab7721511ad0">serialize</a>();</div>
<div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="classlibemb_1_1_string_array.html#a5aaf2bb98e733837dda01cd19ea48d5d">  413</a></span>&#160;    <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classlibemb_1_1_string_array.html#a5aaf2bb98e733837dda01cd19ea48d5d">operator&lt;&lt;</a>(std::ostream&amp; os,<a class="code" href="classlibemb_1_1_string_array.html">StringArray</a>&amp; array)</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    {</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        os&lt;&lt;array.<a class="code" href="classlibemb_1_1_string_array.html#a0bc7d2cf58b5d54ef8c4ab7721511ad0">serialize</a>();</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        <span class="keywordflow">return</span> os;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    }</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;};</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="classlibemb_1_1_tuple_item.html">  424</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_tuple_item.html">TupleItem</a>{</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;<a class="code" href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">DECL_CLASSNAME</a>(<a class="code" href="classlibemb_1_1_tuple_item.html">TupleItem</a>)</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <a class="code" href="classlibemb_1_1_tuple_item.html#a1997806f412257a9729f57db85a5e44a">TupleItem</a>(<span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    <a class="code" href="classlibemb_1_1_tuple_item.html#a1997806f412257a9729f57db85a5e44a">TupleItem</a>(<span class="keywordtype">double</span>);</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    <a class="code" href="classlibemb_1_1_tuple_item.html#a1997806f412257a9729f57db85a5e44a">TupleItem</a>(std::string);</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    <a class="code" href="classlibemb_1_1_tuple_item.html#a1997806f412257a9729f57db85a5e44a">TupleItem</a>(<span class="keyword">const</span> <a class="code" href="classlibemb_1_1_tuple_item.html">TupleItem</a>&amp;);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classlibemb_1_1_tuple_item.html">TupleItem</a>();</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classlibemb_1_1_tuple_item.html#a1d596371427cf1f75c84d113d4288aee">baseType</a>();</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classlibemb_1_1_tuple_item.html#a63c7dc5400880435eb72f032f9c1bb5b">toInt</a>();</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="classlibemb_1_1_tuple_item.html#a2b3451405c1b31d8c8e4bb4c591af38b">toDouble</a>();</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    std::string <a class="code" href="classlibemb_1_1_tuple_item.html#a3c4bb3efdc9b291eee83a162979f1b84">toString</a>();</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    <span class="keywordtype">int</span> m_type;</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    <span class="keywordtype">double</span> m_value;</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    std::string m_string;</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;};</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160; </div>
<div class="line"><a name="l00474"></a><span class="lineno"><a class="line" href="classlibemb_1_1_tuple.html">  474</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>{</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;<a class="code" href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">DECL_CLASSNAME</a>(<a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>)</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>();</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>(<span class="keyword">const</span> <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>&amp;);</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>();</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classlibemb_1_1_tuple.html#a9e5a121b7903db029ca42f4eb077efa4">initWithString</a>(<span class="keyword">const</span> std::string&amp; tupleString);</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classlibemb_1_1_tuple.html#a3713f88b70e5c451dff13fc5065cfef1">size</a>();</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classlibemb_1_1_tuple.html#a9100df75768f69a0383b13e2d5751287">type</a>();</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classlibemb_1_1_tuple.html#a439135fb79c2d927facb2f7029f164e8">clear</a>();</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    std::string <a class="code" href="classlibemb_1_1_tuple.html#ac3230c427a549805245663fdaf2f0f3a">serialize</a>();</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00513"></a><span class="lineno"><a class="line" href="classlibemb_1_1_tuple.html#a5e7c6be4fd307b8bf92069ded9a1071e">  513</a></span>&#160;    <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>&amp; <a class="code" href="classlibemb_1_1_tuple.html#a5e7c6be4fd307b8bf92069ded9a1071e">append</a>(<span class="keyword">const</span> T&amp; item)</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    {</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        <span class="keyword">auto</span> itemPtr = std::make_unique&lt;TupleItem&gt;(item);</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        m_itemVect.push_back(std::move(itemPtr));</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    }</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00527"></a><span class="lineno"><a class="line" href="classlibemb_1_1_tuple.html#a0547e8264b0fb46e86a01001c9c4621f">  527</a></span>&#160;    <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>&amp; <a class="code" href="classlibemb_1_1_tuple.html#a0547e8264b0fb46e86a01001c9c4621f">insert</a>(<span class="keywordtype">int</span> idx, T&amp; item)</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    {</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        <span class="keyword">auto</span> itemPtr = std::make_unique&lt;TupleItem&gt;(item);   </div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <span class="keyword">auto</span> iter = m_itemVect.begin();</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        <span class="keywordtype">int</span> vsize = m_itemVect.size();</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">auto</span> i=0; i&lt;idx &amp;&amp; i&lt;vsize; i++) </div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        {</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;            iter++;</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        }</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        m_itemVect.insert(iter, std::move(itemPtr));</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    }</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    <a class="code" href="classlibemb_1_1_tuple_item.html">TupleItem</a>&amp; <a class="code" href="classlibemb_1_1_tuple.html#a28cd2151a632e24394dfcb071bfe6858">operator[]</a>(<span class="keywordtype">int</span> idx);</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>&amp; <a class="code" href="classlibemb_1_1_tuple.html#a7503b5065a95eed44d491d8af42939a5">operator=</a>(<span class="keyword">const</span> <a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>&amp;);</div>
<div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="classlibemb_1_1_tuple.html#aad00eedd29f3827226050f4d0c20b56d">  556</a></span>&#160;    <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classlibemb_1_1_tuple.html#aad00eedd29f3827226050f4d0c20b56d">operator&lt;&lt;</a>(std::ostream&amp; os,<a class="code" href="classlibemb_1_1_tuple.html">Tuple</a>&amp; tuple)</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    {</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        os &lt;&lt; tuple.<a class="code" href="classlibemb_1_1_tuple.html#ac3230c427a549805245663fdaf2f0f3a">serialize</a>();</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;        <span class="keywordflow">return</span> os;</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    }</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    std::vector&lt;std::unique_ptr&lt;TupleItem&gt;&gt; m_itemVect;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;};</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;}</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="a_base_type_8h_html_a792960261d486477eeadf5ead6303203"><div class="ttname"><a href="_base_type_8h.html#a792960261d486477eeadf5ead6303203">libemb::fltp32</a></div><div class="ttdeci">float fltp32</div><div class="ttdef"><b>Definition:</b> BaseType.h:78</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a9e5a121b7903db029ca42f4eb077efa4"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a9e5a121b7903db029ca42f4eb077efa4">libemb::Tuple::initWithString</a></div><div class="ttdeci">bool initWithString(const std::string &amp;tupleString)</div><div class="ttdoc">使用字符串初始化元组</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:300</div></div>
<div class="ttc" id="a_base_type_8h_html_a717a72a543bb648f05c09a72862ea673a3c001b04130f4d348aa3b9d2245774a7"><div class="ttname"><a href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a3c001b04130f4d348aa3b9d2245774a7">libemb::RC_OK</a></div><div class="ttdeci">@ RC_OK</div><div class="ttdef"><b>Definition:</b> BaseType.h:84</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a3713f88b70e5c451dff13fc5065cfef1"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a3713f88b70e5c451dff13fc5065cfef1">libemb::Tuple::size</a></div><div class="ttdeci">int size()</div><div class="ttdoc">获取元组元素个数</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:407</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453ea4a24a7a6de42cf3cc8194a25d84e5a36"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea4a24a7a6de42cf3cc8194a25d84e5a36">libemb::BASETYPE_NONE</a></div><div class="ttdeci">@ BASETYPE_NONE</div><div class="ttdef"><b>Definition:</b> BaseType.h:92</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a439135fb79c2d927facb2f7029f164e8"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a439135fb79c2d927facb2f7029f164e8">libemb::Tuple::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">清空元组</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:417</div></div>
<div class="ttc" id="a_base_type_8h_html_a717a72a543bb648f05c09a72862ea673a2b6da99bcd572ee55d3cd6b9cfb74500"><div class="ttname"><a href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a2b6da99bcd572ee55d3cd6b9cfb74500">libemb::RC_ERROR</a></div><div class="ttdeci">@ RC_ERROR</div><div class="ttdef"><b>Definition:</b> BaseType.h:85</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_item_html_a3c4bb3efdc9b291eee83a162979f1b84"><div class="ttname"><a href="classlibemb_1_1_tuple_item.html#a3c4bb3efdc9b291eee83a162979f1b84">libemb::TupleItem::toString</a></div><div class="ttdeci">std::string toString()</div><div class="ttdoc">元组元素转换为字符串</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:255</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_aad00eedd29f3827226050f4d0c20b56d"><div class="ttname"><a href="classlibemb_1_1_tuple.html#aad00eedd29f3827226050f4d0c20b56d">libemb::Tuple::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, Tuple &amp;tuple)</div><div class="ttdoc">重载流输出运算符</div><div class="ttdef"><b>Definition:</b> BaseType.h:556</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453ea09dd19a9495a2b868a1fbb597bc9d438"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea09dd19a9495a2b868a1fbb597bc9d438">libemb::BASETYPE_TUPLE</a></div><div class="ttdeci">@ BASETYPE_TUPLE</div><div class="ttdef"><b>Definition:</b> BaseType.h:99</div></div>
<div class="ttc" id="aclasslibemb_1_1_string_array_html"><div class="ttname"><a href="classlibemb_1_1_string_array.html">libemb::StringArray</a></div><div class="ttdoc">字符串数组类</div><div class="ttdef"><b>Definition:</b> BaseType.h:379</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453ea1e3aaaa5a1aacb987461b1bcb6902ed0"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea1e3aaaa5a1aacb987461b1bcb6902ed0">libemb::BASETYPE_DOUBLE</a></div><div class="ttdeci">@ BASETYPE_DOUBLE</div><div class="ttdef"><b>Definition:</b> BaseType.h:94</div></div>
<div class="ttc" id="aclasslibemb_1_1_bitable_html_af2aa2812489c2cac8d91a43af99d310d"><div class="ttname"><a href="classlibemb_1_1_bitable.html#af2aa2812489c2cac8d91a43af99d310d">libemb::Bitable::value</a></div><div class="ttdeci">T value()</div><div class="ttdoc">获取当前值</div><div class="ttdef"><b>Definition:</b> BaseType.h:227</div></div>
<div class="ttc" id="a_base_type_8h_html_abef257ae28ebcc7afce968c8cc64c006"><div class="ttname"><a href="_base_type_8h.html#abef257ae28ebcc7afce968c8cc64c006">libemb::sint16</a></div><div class="ttdeci">signed short sint16</div><div class="ttdef"><b>Definition:</b> BaseType.h:71</div></div>
<div class="ttc" id="a_base_type_8h_html_a01b95241136053b637a37115d60a3621"><div class="ttname"><a href="_base_type_8h.html#a01b95241136053b637a37115d60a3621">libemb::sint8</a></div><div class="ttdeci">signed char sint8</div><div class="ttdef"><b>Definition:</b> BaseType.h:70</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a5e7c6be4fd307b8bf92069ded9a1071e"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a5e7c6be4fd307b8bf92069ded9a1071e">libemb::Tuple::append</a></div><div class="ttdeci">Tuple &amp; append(const T &amp;item)</div><div class="ttdoc">增加元素</div><div class="ttdef"><b>Definition:</b> BaseType.h:513</div></div>
<div class="ttc" id="aclasslibemb_1_1_base_info_html"><div class="ttname"><a href="classlibemb_1_1_base_info.html">libemb::BaseInfo</a></div><div class="ttdoc">基础信息类</div><div class="ttdef"><b>Definition:</b> BaseType.h:42</div></div>
<div class="ttc" id="a_base_type_8h_html_a01991db9cc388cf9815386e13465f332"><div class="ttname"><a href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">libemb::uint32</a></div><div class="ttdeci">unsigned int uint32</div><div class="ttdef"><b>Definition:</b> BaseType.h:76</div></div>
<div class="ttc" id="a_base_type_8h_html_acb7826b9adaa8e650e7f090ec418cade"><div class="ttname"><a href="_base_type_8h.html#acb7826b9adaa8e650e7f090ec418cade">libemb::sint32</a></div><div class="ttdeci">signed int sint32</div><div class="ttdef"><b>Definition:</b> BaseType.h:72</div></div>
<div class="ttc" id="aclasslibemb_1_1_bitable_html"><div class="ttname"><a href="classlibemb_1_1_bitable.html">libemb::Bitable</a></div><div class="ttdoc">用于对类型T进行位操作</div><div class="ttdef"><b>Definition:</b> BaseType.h:192</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453ea67c217d18c5dde20e6f286aa296a8bc2"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea67c217d18c5dde20e6f286aa296a8bc2">libemb::BASETYPE_DOUBLEARRAY</a></div><div class="ttdeci">@ BASETYPE_DOUBLEARRAY</div><div class="ttdef"><b>Definition:</b> BaseType.h:97</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html"><div class="ttname"><a href="classlibemb_1_1_tuple.html">libemb::Tuple</a></div><div class="ttdoc">元组类(可以同时存储整数,浮点数,字符串)</div><div class="ttdef"><b>Definition:</b> BaseType.h:474</div></div>
<div class="ttc" id="aclasslibemb_1_1_bitable_html_a7583c2b1989da76531bb3c433219adb3"><div class="ttname"><a href="classlibemb_1_1_bitable.html#a7583c2b1989da76531bb3c433219adb3">libemb::Bitable::set</a></div><div class="ttdeci">Bitable &amp; set(uint8 bit)</div><div class="ttdoc">设置位</div><div class="ttdef"><b>Definition:</b> BaseType.h:208</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a9100df75768f69a0383b13e2d5751287"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a9100df75768f69a0383b13e2d5751287">libemb::Tuple::type</a></div><div class="ttdeci">int type()</div><div class="ttdoc">获取类型</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:412</div></div>
<div class="ttc" id="aclasslibemb_1_1_double_array_html_a9739eccdbdf1146ac2b387b40b5abf7a"><div class="ttname"><a href="classlibemb_1_1_double_array.html#a9739eccdbdf1146ac2b387b40b5abf7a">libemb::DoubleArray::initWithString</a></div><div class="ttdeci">bool initWithString(const std::string &amp;arrayString)</div><div class="ttdoc">使用字符串初始化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:86</div></div>
<div class="ttc" id="aclasslibemb_1_1_string_array_html_a0bc7d2cf58b5d54ef8c4ab7721511ad0"><div class="ttname"><a href="classlibemb_1_1_string_array.html#a0bc7d2cf58b5d54ef8c4ab7721511ad0">libemb::StringArray::serialize</a></div><div class="ttdeci">std::string serialize()</div><div class="ttdoc">序列化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:189</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_ac3230c427a549805245663fdaf2f0f3a"><div class="ttname"><a href="classlibemb_1_1_tuple.html#ac3230c427a549805245663fdaf2f0f3a">libemb::Tuple::serialize</a></div><div class="ttdeci">std::string serialize()</div><div class="ttdoc">序列化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:422</div></div>
<div class="ttc" id="a_base_type_8h_html_a33693dc67dce44b501dc5d6661639155"><div class="ttname"><a href="_base_type_8h.html#a33693dc67dce44b501dc5d6661639155">libemb::uint64</a></div><div class="ttdeci">unsigned long long uint64</div><div class="ttdef"><b>Definition:</b> BaseType.h:77</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453eaf62b1703b9f8442c584ff9d73695303f"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eaf62b1703b9f8442c584ff9d73695303f">libemb::BASETYPE_INTARRAY</a></div><div class="ttdeci">@ BASETYPE_INTARRAY</div><div class="ttdef"><b>Definition:</b> BaseType.h:96</div></div>
<div class="ttc" id="a_base_type_8h_html_aebf3b8d3c22313714b07d595cc3effac"><div class="ttname"><a href="_base_type_8h.html#aebf3b8d3c22313714b07d595cc3effac">libemb::uint16</a></div><div class="ttdeci">unsigned short uint16</div><div class="ttdef"><b>Definition:</b> BaseType.h:75</div></div>
<div class="ttc" id="aclasslibemb_1_1_bitable_html_a91b63b720bddc68d88087047ac967e22"><div class="ttname"><a href="classlibemb_1_1_bitable.html#a91b63b720bddc68d88087047ac967e22">libemb::Bitable::clr</a></div><div class="ttdeci">Bitable &amp; clr(uint8 bit)</div><div class="ttdoc">清除位</div><div class="ttdef"><b>Definition:</b> BaseType.h:218</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_item_html_a1997806f412257a9729f57db85a5e44a"><div class="ttname"><a href="classlibemb_1_1_tuple_item.html#a1997806f412257a9729f57db85a5e44a">libemb::TupleItem::TupleItem</a></div><div class="ttdeci">TupleItem(int)</div><div class="ttdoc">构造整形元组元素</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:207</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a0547e8264b0fb46e86a01001c9c4621f"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a0547e8264b0fb46e86a01001c9c4621f">libemb::Tuple::insert</a></div><div class="ttdeci">Tuple &amp; insert(int idx, T &amp;item)</div><div class="ttdoc">插入元素</div><div class="ttdef"><b>Definition:</b> BaseType.h:527</div></div>
<div class="ttc" id="aclasslibemb_1_1_string_array_html_acb17447a18caf2da274f1365cf920971"><div class="ttname"><a href="classlibemb_1_1_string_array.html#acb17447a18caf2da274f1365cf920971">libemb::StringArray::StringArray</a></div><div class="ttdeci">StringArray(const std::string &amp;arrayString)</div><div class="ttdoc">字符串数组</div><div class="ttdef"><b>Definition:</b> BaseType.h:390</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453ea12310335ecadd4629aaa38bfe1e19ebe"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea12310335ecadd4629aaa38bfe1e19ebe">libemb::BASETYPE_INT</a></div><div class="ttdeci">@ BASETYPE_INT</div><div class="ttdef"><b>Definition:</b> BaseType.h:93</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_item_html_a2b3451405c1b31d8c8e4bb4c591af38b"><div class="ttname"><a href="classlibemb_1_1_tuple_item.html#a2b3451405c1b31d8c8e4bb4c591af38b">libemb::TupleItem::toDouble</a></div><div class="ttdeci">double toDouble()</div><div class="ttdoc">元组元素转换为浮点数</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:250</div></div>
<div class="ttc" id="aclasslibemb_1_1_string_array_html_acda2be54bd7ca8e69a8b659050691943"><div class="ttname"><a href="classlibemb_1_1_string_array.html#acda2be54bd7ca8e69a8b659050691943">libemb::StringArray::initWithString</a></div><div class="ttdeci">bool initWithString(const std::string &amp;arrayString)</div><div class="ttdoc">使用字符串初始化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:121</div></div>
<div class="ttc" id="a_base_type_8h_html_a717a72a543bb648f05c09a72862ea673"><div class="ttname"><a href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673">libemb::RC_E</a></div><div class="ttdeci">RC_E</div><div class="ttdef"><b>Definition:</b> BaseType.h:83</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453e"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453e">libemb::BASETYPE_E</a></div><div class="ttdeci">BASETYPE_E</div><div class="ttdef"><b>Definition:</b> BaseType.h:91</div></div>
<div class="ttc" id="aclasslibemb_1_1_double_array_html_a3ed044e1aed75ea335ab74db0b07bcbb"><div class="ttname"><a href="classlibemb_1_1_double_array.html#a3ed044e1aed75ea335ab74db0b07bcbb">libemb::DoubleArray::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, DoubleArray &amp;array)</div><div class="ttdoc">流输出运算符重载</div><div class="ttdef"><b>Definition:</b> BaseType.h:368</div></div>
<div class="ttc" id="aclasslibemb_1_1_int_array_html_a416034bfc984573612de54b672c19a29"><div class="ttname"><a href="classlibemb_1_1_int_array.html#a416034bfc984573612de54b672c19a29">libemb::IntArray::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, IntArray &amp;array)</div><div class="ttdoc">流输出运算符重载</div><div class="ttdef"><b>Definition:</b> BaseType.h:323</div></div>
<div class="ttc" id="aclasslibemb_1_1_array_html"><div class="ttname"><a href="classlibemb_1_1_array.html">libemb::Array</a></div><div class="ttdoc">数组基类</div><div class="ttdef"><b>Definition:</b> BaseType.h:242</div></div>
<div class="ttc" id="aclasslibemb_1_1_int_array_html_a7a98fe85552ee05acc5002799dad4d51"><div class="ttname"><a href="classlibemb_1_1_int_array.html#a7a98fe85552ee05acc5002799dad4d51">libemb::IntArray::initWithString</a></div><div class="ttdeci">bool initWithString(const std::string &amp;arrayString)</div><div class="ttdoc">使用字符串初始化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:52</div></div>
<div class="ttc" id="aclasslibemb_1_1_int_array_html"><div class="ttname"><a href="classlibemb_1_1_int_array.html">libemb::IntArray</a></div><div class="ttdoc">整形数组类,例:[1, 2, 3]</div><div class="ttdef"><b>Definition:</b> BaseType.h:288</div></div>
<div class="ttc" id="aclasslibemb_1_1_double_array_html_a7295a092ba7f8fb72cac2cc71599b83d"><div class="ttname"><a href="classlibemb_1_1_double_array.html#a7295a092ba7f8fb72cac2cc71599b83d">libemb::DoubleArray::serialize</a></div><div class="ttdeci">std::string serialize()</div><div class="ttdoc">序列化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:102</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_item_html"><div class="ttname"><a href="classlibemb_1_1_tuple_item.html">libemb::TupleItem</a></div><div class="ttdoc">元组元素类</div><div class="ttdef"><b>Definition:</b> BaseType.h:424</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a28cd2151a632e24394dfcb071bfe6858"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a28cd2151a632e24394dfcb071bfe6858">libemb::Tuple::operator[]</a></div><div class="ttdeci">TupleItem &amp; operator[](int idx)</div><div class="ttdoc">重载[]运算阀</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:463</div></div>
<div class="ttc" id="a_base_type_8h_html_a717a72a543bb648f05c09a72862ea673a07aeb21aa3dbaf09860fdd89e67f6c52"><div class="ttname"><a href="_base_type_8h.html#a717a72a543bb648f05c09a72862ea673a07aeb21aa3dbaf09860fdd89e67f6c52">libemb::RC_TIMEOUT</a></div><div class="ttdeci">@ RC_TIMEOUT</div><div class="ttdef"><b>Definition:</b> BaseType.h:86</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453eacb991a500be227bd5411bdba6672dca7"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453eacb991a500be227bd5411bdba6672dca7">libemb::BASETYPE_STRING</a></div><div class="ttdeci">@ BASETYPE_STRING</div><div class="ttdef"><b>Definition:</b> BaseType.h:95</div></div>
<div class="ttc" id="aclasslibemb_1_1_bitable_html_ac9bde967e494238b2036bbc1bba744b4"><div class="ttname"><a href="classlibemb_1_1_bitable.html#ac9bde967e494238b2036bbc1bba744b4">libemb::Bitable::Bitable</a></div><div class="ttdeci">Bitable(const T &amp;value)</div><div class="ttdoc">构造位值类</div><div class="ttdef"><b>Definition:</b> BaseType.h:198</div></div>
<div class="ttc" id="a_base_type_8h_html_a57e803e49526dc5ba8c1915c68708ae0"><div class="ttname"><a href="_base_type_8h.html#a57e803e49526dc5ba8c1915c68708ae0">DECL_CLASSNAME</a></div><div class="ttdeci">#define DECL_CLASSNAME(ClassName)</div><div class="ttdef"><b>Definition:</b> BaseType.h:176</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_item_html_a1d596371427cf1f75c84d113d4288aee"><div class="ttname"><a href="classlibemb_1_1_tuple_item.html#a1d596371427cf1f75c84d113d4288aee">libemb::TupleItem::baseType</a></div><div class="ttdeci">int baseType()</div><div class="ttdoc">获取元组元素类型</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:239</div></div>
<div class="ttc" id="aclasslibemb_1_1_double_array_html"><div class="ttname"><a href="classlibemb_1_1_double_array.html">libemb::DoubleArray</a></div><div class="ttdoc">浮点型数组类,例:[1.01, 2.02, 3.03]</div><div class="ttdef"><b>Definition:</b> BaseType.h:334</div></div>
<div class="ttc" id="a_base_type_8h_html_a3450d82e4ab35808b09bd2a23861453ea04372dfea53597c8a35527759ce81542"><div class="ttname"><a href="_base_type_8h.html#a3450d82e4ab35808b09bd2a23861453ea04372dfea53597c8a35527759ce81542">libemb::BASETYPE_STRINGARRAY</a></div><div class="ttdeci">@ BASETYPE_STRINGARRAY</div><div class="ttdef"><b>Definition:</b> BaseType.h:98</div></div>
<div class="ttc" id="aclasslibemb_1_1_int_array_html_a1580cebd3d37f131d9827f1f19304414"><div class="ttname"><a href="classlibemb_1_1_int_array.html#a1580cebd3d37f131d9827f1f19304414">libemb::IntArray::serialize</a></div><div class="ttdeci">std::string serialize()</div><div class="ttdoc">序列化</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:68</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_html_a7503b5065a95eed44d491d8af42939a5"><div class="ttname"><a href="classlibemb_1_1_tuple.html#a7503b5065a95eed44d491d8af42939a5">libemb::Tuple::operator=</a></div><div class="ttdeci">Tuple &amp; operator=(const Tuple &amp;)</div><div class="ttdoc">重载赋值运算符</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:469</div></div>
<div class="ttc" id="aclasslibemb_1_1_string_array_html_a5aaf2bb98e733837dda01cd19ea48d5d"><div class="ttname"><a href="classlibemb_1_1_string_array.html#a5aaf2bb98e733837dda01cd19ea48d5d">libemb::StringArray::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, StringArray &amp;array)</div><div class="ttdoc">流输出运算符重载</div><div class="ttdef"><b>Definition:</b> BaseType.h:413</div></div>
<div class="ttc" id="a_base_type_8h_html_a8cf9eb6347322ab5fc5df9edc3d44276"><div class="ttname"><a href="_base_type_8h.html#a8cf9eb6347322ab5fc5df9edc3d44276">libemb::fltp64</a></div><div class="ttdeci">double fltp64</div><div class="ttdef"><b>Definition:</b> BaseType.h:79</div></div>
<div class="ttc" id="aclasslibemb_1_1_int_array_html_a6ae2e20c4b7051b42f7b7944090872fd"><div class="ttname"><a href="classlibemb_1_1_int_array.html#a6ae2e20c4b7051b42f7b7944090872fd">libemb::IntArray::IntArray</a></div><div class="ttdeci">IntArray(const std::string &amp;arrayString)</div><div class="ttdoc">整型数组</div><div class="ttdef"><b>Definition:</b> BaseType.h:299</div></div>
<div class="ttc" id="a_base_type_8h_html_addd0d1ba39d05a893db9eba78123ee5a"><div class="ttname"><a href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">libemb::uint8</a></div><div class="ttdeci">unsigned char uint8</div><div class="ttdef"><b>Definition:</b> BaseType.h:74</div></div>
<div class="ttc" id="aclasslibemb_1_1_double_array_html_ac57c59cd02d6f9639ec8b893ab7fd0bb"><div class="ttname"><a href="classlibemb_1_1_double_array.html#ac57c59cd02d6f9639ec8b893ab7fd0bb">libemb::DoubleArray::DoubleArray</a></div><div class="ttdeci">DoubleArray(const std::string &amp;arrayString)</div><div class="ttdoc">浮点数组</div><div class="ttdef"><b>Definition:</b> BaseType.h:345</div></div>
<div class="ttc" id="a_base_type_8h_html_a48aedf065d71f1d23d24501f411c6e42"><div class="ttname"><a href="_base_type_8h.html#a48aedf065d71f1d23d24501f411c6e42">libemb::sint64</a></div><div class="ttdeci">signed long long sint64</div><div class="ttdef"><b>Definition:</b> BaseType.h:73</div></div>
<div class="ttc" id="aclasslibemb_1_1_tuple_item_html_a63c7dc5400880435eb72f032f9c1bb5b"><div class="ttname"><a href="classlibemb_1_1_tuple_item.html#a63c7dc5400880435eb72f032f9c1bb5b">libemb::TupleItem::toInt</a></div><div class="ttdeci">int toInt()</div><div class="ttdoc">元组元素转换为整形</div><div class="ttdef"><b>Definition:</b> BaseType.cpp:245</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
